using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FitnessCenter.DataAccessLayer.DataModels
{
    [Table("Activity")]
    public class Activity
    {
        public Activity()
        {
            ActivityLog = new HashSet<ActivityLog>();
        }

        public int ActivityID { get; set; }

        [Required]
        [StringLength(500)]
        public string ActivityName { get; set; }

        public int CoachID { get; set; }

        public virtual Person Person { get; set; }

        public virtual ICollection<ActivityLog> ActivityLog { get; set; }
    }
}
